<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ include file="../../base.jsp" %>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 页面meta /-->
</head>
<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
    <!-- 内容头部 -->
    <section class="content-header">
        <h1>
            产品管理
            <small></small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="all-order-manage-list.html">产品管理</a></li>
            <li class="active">新增产品</li>
        </ol>
    </section>
    <!-- 内容头部 /-->

    <!-- 正文区域 -->
    <section class="content">

        <!--订单信息-->
        <div class="panel panel-default">
            <div class="panel-heading">产品信息</div>
            <form id="editForm" action="${ctx}/cargo/product/edit.do" method="post">
                <div class="row data-type" style="margin: 0px">
                    <input type="hidden" class="form-control" placeholder="厂家id" name="factoryId"
                           value="${factory.id}" readonly hidden>

                    <div class="col-md-2 title">厂家名称</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="厂家名称" name="factoryName"
                               value="${factory.fullName}" readonly>
                    </div>

                    <div class="col-md-2 title">长</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="长" name="sizeLenght"
                               value="${product.sizeLenght}">
                    </div>

                    <div class="col-md-2 title">产品编号</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="产品编号" name="productNo"
                               value="" >
                    </div>

                    <div class="col-md-2 title">宽</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="宽" name="sizeWidth"
                               value="${product.sizeWidth}">
                    </div>

                    <div class="col-md-2 title">商品简介</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="商品简介" name="description"
                               value="${product.description}">
                    </div>

                    <div class="col-md-2 title">高</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="高" name="sizeHeight"
                               value="${product.sizeHeight}">
                    </div>


                    <div class="col-md-2 title">包装</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="包装" name="sizeWidth"
                               value="${product.sizeWidth}">
                    </div>

                    <%--<div class="col-md-2 title">厂家类型</div>
                    <div class="col-md-4 data">
                        <div class="form-group form-inline">
                            <div class="radio"><label><input type="radio" ${user.state==0?'checked':''} name="ctype" value="货物">货物</label></div>
                            <div class="radio"><label><input type="radio" ${user.state==1?'checked':''} name="ctype" value="附件">附件</label></div>
                        </div>
                    </div>--%>
                    <div class="col-md-2 title">颜色</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="颜色" name="color"
                               value="${product.color}">
                    </div>


                    <div class="col-md-2 title">价格</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="价格" name="price"
                               value="${product.price}">
                    </div>



                    <div class="col-md-2 title">备注</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="备注" name="remark"
                        >
                    </div>
                    <%--<div class="col-md-2 title">状态</div>
                    <div class="col-md-4 data">
                        <div class="form-group form-inline">
                            <div class="radio"><label><input type="radio" ${user.state==0?'checked':''} name="state" value="0">停用</label></div>
                            <div class="radio"><label><input type="radio" ${user.state==1?'checked':''} name="state" value="1">正常</label></div>
                        </div>
                    </div>--%>


                    <%--<div class="col-md-2 title">验货员</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="验货员" name="inspector"
                               value="${contract.crequest}">
                    </div>--%>


                    <%-- <div class="col-md-2 title">贸易条款</div>
                     <div class="col-md-4 data">
                         <input type="text" class="form-control" placeholder="贸易条款" name="tradeTerms"
                                value="${contract.tradeTerms}">
                     </div>

                     <div class="col-md-2 title">打印版式</div>
                     <div class="col-md-4 data">
                         <input type="text" class="form-control" placeholder="打印版式" name="printStyle"
                                value="${contract.printStyle}">
                     </div>--%>

                </div>
            </form>
        </div>
        <!--订单信息/-->

        <!--工具栏-->
        <div class="box-tools text-center">
            <button type="button" onclick='document.getElementById("editForm").submit()' class="btn bg-maroon">保存
            </button>
            <button type="button" class="btn bg-default" onclick="history.back(-1);">返回</button>
        </div>
        <!--工具栏/-->

    </section>
    <!-- 正文区域 /-->

</div>
<!-- 内容区域 /-->
</body>
<script src="../../plugins/datepicker/bootstrap-datepicker.js"></script>
<script src="../../plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<link rel="stylesheet" href="../../css/style.css">
<script>
    $('#signingDate').datepicker({
        autoclose: true,
        format: 'yyyy-mm-dd'
    });
    $('#deliveryPeriod').datepicker({
        autoclose: true,
        format: 'yyyy-mm-dd'
    });
    $('#shipTime').datepicker({
        autoclose: true,
        format: 'yyyy-mm-dd'
    });
</script>
</html>